//
//  ZSNewsDataViewCell.m
//  fangwangyi
//
//  Created by 臧松 on 16/4/27.
//  Copyright © 2016年 zangsong. All rights reserved.
//

#import "ZSNewsDataViewCell.h"
#import "ZSNewsDataTableView.h"

@interface ZSNewsDataViewCell ()
@property (nonatomic,strong) ZSNewsDataTableView * dataView;

@end
@implementation ZSNewsDataViewCell
-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
        // self.backgroundColor = [UIColor redColor];
        
        ZSNewsDataTableView * dataView = [[ZSNewsDataTableView alloc]initWithFrame:CGRectZero];
        
        self.dataView = dataView;
        
        [self.contentView addSubview:dataView];
    }
    return self;
}

// 将新闻频道数据
-(void)setChannel:(ZSChannel *)channel{
    _channel = channel;
    self.dataView.channel = channel;
}
@end
